package design;

/**
 * 继承Flyweight超类或者是实现Flyweight接口，并为其内部状态增加存储空间
 */
public class ConcreteFlyweight extends Flyweight
{

    public ConcreteFlyweight(String extrinsic)
    {
        super(extrinsic);
    }

    //根据外部状态进行业务逻辑处理
    @Override
    public void operate(int extrinsic)
    {
        System.out.println("具体的Flyweight：" + extrinsic);
    }
}
